<div id="goodslist" class="tableform">
	<div class="goodslistcontent">
		<table  width="100%" cellpadding="0" cellspacing="0">
            <tr>
                <th><{t app="b2c"}>商品名称:<{/t}></th>
                <td>
                   <input name="goods1name" value="<{$setting.goods1name}>" maxlength="8">
                </td>
				<th><{t app="b2c"}>商品描述:<{/t}></th>
                <td>
                    <input name="des1" value="<{$setting.des1}>"  maxlength="20">
                </td>
            </tr>
            <tr>
				<th><{t app="b2c"}>商品图片:<{/t}></th>
				<td>
					<input type=hidden name=ppic1 value="<{$setting.ppic1}>">
                    <input name='ppic1' value="<{$setting.ppic1}>">
					<input type=button value=上传图片 class="uploadbtn" onclick="addPic(this);">
				</td>
				<th><{t app="b2c"}>链接地址:<{/t}></th>
                <td>
                    <input name="goodsrc1" value="<{$setting.goodsrc1}>">
                </td>
            </tr>
			<tr>
                <th><{t app="b2c"}>商品名称:<{/t}></th>
                <td>
                   <input name="goodsname2" value="<{$setting.goodsname2}>" maxlength="8">
                </td>
				<th><{t app="b2c"}>商品描述:<{/t}></th>
                <td>
                    <input name="des2" value="<{$setting.des2}>"  maxlength="20">
                </td>
            </tr>
            <tr>
				<th><{t app="b2c"}>商品图片:<{/t}></th>
				<td>
					<input type=hidden name=ppic2 value="<{$setting.ppic2}>">
                    <input name='ppic2' value="<{$setting.ppic2}>">
					<input type=button value=上传图片 class="uploadbtn" onclick="addPic(this);">
				</td>
				<th><{t app="b2c"}>链接地址:<{/t}></th>
                <td>
                    <input name="goodsrc2" value="<{$setting.goodsrc2}>">
                </td>
            </tr>
			<tr>
                <th><{t app="b2c"}>商品名称:<{/t}></th>
                <td>
                   <input name="goodsname3" value="<{$setting.goodsname3}>" maxlength="8">
                </td>
				<th><{t app="b2c"}>商品描述:<{/t}></th>
                <td>
                    <input name="des3" value="<{$setting.des3}>" maxlength="20">
                </td>
            </tr>
            <tr>
				<th><{t app="b2c"}>商品图片:<{/t}></th>
				<td>
					<input type=hidden name=ppic3 value="<{$setting.ppic3}>">
                    <input name='ppic3' value="<{$setting.ppic3}>">
					<input type=button value=上传图片 class="uploadbtn" onclick="addPic(this);">
				</td>
				<th><{t app="b2c"}>链接地址:<{/t}></th>
                <td>
                    <input name="goodsrc3" value="<{$setting.goodsrc3}>">
                </td>
            </tr>
        </table>
	</div>
</div>
<script>
function addPic(eleid){
	var url='index.php?app=desktop&act=alertpages&goto='+encodeURIComponent("index.php?app=image&ctl=admin_manage&act=image_broswer&type=big");
	Ex_Loader('modedialog',function(){
		return new imgDialog(url,{onCallback:function(image_id,image_src){
				$(eleid).getPrevious('input').value=image_src;
		}})	;
	});
}
</script>